package com.dmagic.cms.service;

import java.util.List;
import java.util.Map;

import com.dmagic.cms.common.exception.ServiceException;
import com.dmagic.cms.common.exception.ValidateException;
import com.dmagic.cms.common.query.PageUtil;
import com.dmagic.cms.entity.News;

public interface NewsService {

    public void saveNews(News[] news) throws ValidateException;

    public void searchNews(PageUtil<Map> pageUtil) throws ServiceException;

    public News getNews(Long newsId) throws ServiceException;

    public List<News> getNewsByNewsNo(String newsNo) throws ServiceException;

    public void deleteNews(List<Long> newsIds) throws ServiceException;

    public void deleteNews(Long newsId) throws ServiceException;
}
